<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="css/index.css" rel="stylesheet" type="text/css" />
<link href="/css/bluePage.css" rel="stylesheet" type="text/css" />
<script src="../../../js/prototype.js" type="text/javascript"></script>
<script src="../../../js/engine.js" type="text/javascript"></script>
<script src="../../../js/public.js" type="text/javascript"></script>
#parse("/WEB-INF/views/base/base.html")
<title>入库单表页</title>
</head>
<body>
<form id="ListForm" name="ListForm" action='stockIncome.do?cmd=list' method="post">
  <input type="hidden" name="orderBy" value="$!orderBy"/>
  <input type="hidden" name="orderType" value="$!orderType"/>
<div class="content-right">
<div class="content-r-pic"><div style="margin:8px auto auto 12px;"><img src="images/StockIncome.gif" width="138" height="17" /></div></div>
<div class="content-text">
<div class="square-o-top">
<table width="100%"  cellspacing="0" style="font-size:14px; font-weight:bold; font-family:"黑体";">
  <tr>
            <td width="70" height="30">&nbsp;&nbsp;订单编号</td>
            <td width="140"><input name="name" type="text" class="searchInput" /></td>
            <td width="65">订单状态</td>
            <td width="150"><select name="status" id="status" style="width:120px" onchange="document.getElementById('ListForm').submit()">
                <option value="">请选择...</option>
                <option value="0" #if($!obj.status==0)selected="selected" #end>未审核</option>
                <option value="1" #if($!obj.status==1)selected="selected" #end>正常</option>
                <option value="-1" #if($!obj.status==-1)selected="selected" #end>锁定</option>
                <option value="-2" #if($!obj.status==-2)selected="selected" #end>回收站</option>
              </select></td>
                        <td width="55">供应商</td>
            <td width="165"><select name="supplier_Id" id="supplier_Id" onchange="document.getElementById('ListForm').submit()" style="width:120px">
			<option value="">请选择...</option>
                #foreach($info in $supplierList)
                    <option value="$!info.id">$!info.name</option>
                #end
              </select></td>
            <td width="85"><input type="image" src="../../../images/can_b_01.gif" border="0" /></td>
            <td width="136"><a href="?cmd=add"><img src="../../../images/can_b_02.gif" border="0"/></a></td>
          </tr>
</table>
</div><!--"square-o-top"end-->
<div class="square-order">
  <table width="100%"  border="0" id="listDB" cellpadding="0" cellspacing="0">
    <tr align="center" style="background:url(images/table_bg.gif) repeat-x;">
      <td width="13%" height="30">订单编号</td>
      <td width="16%">采购日期</td>
      <td width="15%">供货商</td>
      <td width="14%">所在仓库</td>
      <td width="14%">审核</td>
      <td width="12%">订单金额</td>
      <td width="16%">操作</td>
    </tr>
         #foreach($obj in ${result})
    <tr ondblclick="window.location.href='?cmd=edit&id=${obj.id}'" onmouseover="ItcastUtil.displace(this,true)" onmouseout="ItcastUtil.displace(this,false)" id="sn_$!velocityCount">
      <td height="28">${obj.sn}</td>
      <td>${obj.vdate}</td>
      <td>${obj.supplier.name} </td>
      <td>${obj.depot.name}</td>
      <td>${obj.auditing}</td>
      <td>${obj.amount}</td>
      
      <td><img src="images/icon_3.gif" /><span style="line-height:12px; text-align:center;"><a class="xiu" href="?cmd=audit&id=${obj.id}" onclick="return confirm('单据审核后不能修改!')">审核</a></span><img src="images/icon_3.gif" /> <span style="line-height:12px; text-align:center;"><a class="xiu" href="stockIncomeItem.do?cmd=list&parentId=${obj.id}">管理详情</a></span><img src="images/icon_3.gif" /> <span style="line-height:12px; text-align:center;"><a class="xiu" href="?cmd=edit&id=${obj.id}">修改</a></span> <img src="images/icon_04.gif" /> <span style="line-height:12px; text-align:center;"><a class="xiu" href="?cmd=remove&id=${obj.id}" onclick="return confirm('数据删除后不能恢复,请确认!');">删除</a></span></td>
    </tr>
    #end
  </table>
</div><!--"square-order"end-->
</div><!--"content-text"end-->
<div class="content-bbg">
      <table width="100%"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td>$!{bluePage}</td>
        </tr>
      </table>
    </div>
</div><!--"content-right"end-->

</body>
</html>